package com.xayy.core.utils;

/**
 * 墨卡托转经纬度
 * @author plq
 */
public class MercatorAndWgs84 {


    public static double[] mercatorToWgs84(Double x, Double y){
        double lon = x/20037508.34*180;
        double lat = y/20037508.34*180;
        lat= 180/Math.PI*(2*Math.atan(Math.exp(lat*Math.PI/180))-Math.PI/2);
        return new double[]{lon, lat};
    }
}
